package com.bzy.blp.model;

import java.util.ArrayList;
import java.util.List;

public class TPileDetailCriteria {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TPileDetailCriteria() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPileIdIsNull() {
            addCriterion("pile_id is null");
            return (Criteria) this;
        }

        public Criteria andPileIdIsNotNull() {
            addCriterion("pile_id is not null");
            return (Criteria) this;
        }

        public Criteria andPileIdEqualTo(String value) {
            addCriterion("pile_id =", value, "pileId");
            return (Criteria) this;
        }

        public Criteria andPileIdNotEqualTo(String value) {
            addCriterion("pile_id <>", value, "pileId");
            return (Criteria) this;
        }

        public Criteria andPileIdGreaterThan(String value) {
            addCriterion("pile_id >", value, "pileId");
            return (Criteria) this;
        }

        public Criteria andPileIdGreaterThanOrEqualTo(String value) {
            addCriterion("pile_id >=", value, "pileId");
            return (Criteria) this;
        }

        public Criteria andPileIdLessThan(String value) {
            addCriterion("pile_id <", value, "pileId");
            return (Criteria) this;
        }

        public Criteria andPileIdLessThanOrEqualTo(String value) {
            addCriterion("pile_id <=", value, "pileId");
            return (Criteria) this;
        }

        public Criteria andPileIdLike(String value) {
            addCriterion("pile_id like", value, "pileId");
            return (Criteria) this;
        }

        public Criteria andPileIdNotLike(String value) {
            addCriterion("pile_id not like", value, "pileId");
            return (Criteria) this;
        }

        public Criteria andPileIdIn(List<String> values) {
            addCriterion("pile_id in", values, "pileId");
            return (Criteria) this;
        }

        public Criteria andPileIdNotIn(List<String> values) {
            addCriterion("pile_id not in", values, "pileId");
            return (Criteria) this;
        }

        public Criteria andPileIdBetween(String value1, String value2) {
            addCriterion("pile_id between", value1, value2, "pileId");
            return (Criteria) this;
        }

        public Criteria andPileIdNotBetween(String value1, String value2) {
            addCriterion("pile_id not between", value1, value2, "pileId");
            return (Criteria) this;
        }

        public Criteria andDrillNumberIsNull() {
            addCriterion("drill_number is null");
            return (Criteria) this;
        }

        public Criteria andDrillNumberIsNotNull() {
            addCriterion("drill_number is not null");
            return (Criteria) this;
        }

        public Criteria andDrillNumberEqualTo(String value) {
            addCriterion("drill_number =", value, "drillNumber");
            return (Criteria) this;
        }

        public Criteria andDrillNumberNotEqualTo(String value) {
            addCriterion("drill_number <>", value, "drillNumber");
            return (Criteria) this;
        }

        public Criteria andDrillNumberGreaterThan(String value) {
            addCriterion("drill_number >", value, "drillNumber");
            return (Criteria) this;
        }

        public Criteria andDrillNumberGreaterThanOrEqualTo(String value) {
            addCriterion("drill_number >=", value, "drillNumber");
            return (Criteria) this;
        }

        public Criteria andDrillNumberLessThan(String value) {
            addCriterion("drill_number <", value, "drillNumber");
            return (Criteria) this;
        }

        public Criteria andDrillNumberLessThanOrEqualTo(String value) {
            addCriterion("drill_number <=", value, "drillNumber");
            return (Criteria) this;
        }

        public Criteria andDrillNumberLike(String value) {
            addCriterion("drill_number like", value, "drillNumber");
            return (Criteria) this;
        }

        public Criteria andDrillNumberNotLike(String value) {
            addCriterion("drill_number not like", value, "drillNumber");
            return (Criteria) this;
        }

        public Criteria andDrillNumberIn(List<String> values) {
            addCriterion("drill_number in", values, "drillNumber");
            return (Criteria) this;
        }

        public Criteria andDrillNumberNotIn(List<String> values) {
            addCriterion("drill_number not in", values, "drillNumber");
            return (Criteria) this;
        }

        public Criteria andDrillNumberBetween(String value1, String value2) {
            addCriterion("drill_number between", value1, value2, "drillNumber");
            return (Criteria) this;
        }

        public Criteria andDrillNumberNotBetween(String value1, String value2) {
            addCriterion("drill_number not between", value1, value2, "drillNumber");
            return (Criteria) this;
        }

        public Criteria andLengthIsNull() {
            addCriterion("length is null");
            return (Criteria) this;
        }

        public Criteria andLengthIsNotNull() {
            addCriterion("length is not null");
            return (Criteria) this;
        }

        public Criteria andLengthEqualTo(String value) {
            addCriterion("length =", value, "length");
            return (Criteria) this;
        }

        public Criteria andLengthNotEqualTo(String value) {
            addCriterion("length <>", value, "length");
            return (Criteria) this;
        }

        public Criteria andLengthGreaterThan(String value) {
            addCriterion("length >", value, "length");
            return (Criteria) this;
        }

        public Criteria andLengthGreaterThanOrEqualTo(String value) {
            addCriterion("length >=", value, "length");
            return (Criteria) this;
        }

        public Criteria andLengthLessThan(String value) {
            addCriterion("length <", value, "length");
            return (Criteria) this;
        }

        public Criteria andLengthLessThanOrEqualTo(String value) {
            addCriterion("length <=", value, "length");
            return (Criteria) this;
        }

        public Criteria andLengthLike(String value) {
            addCriterion("length like", value, "length");
            return (Criteria) this;
        }

        public Criteria andLengthNotLike(String value) {
            addCriterion("length not like", value, "length");
            return (Criteria) this;
        }

        public Criteria andLengthIn(List<String> values) {
            addCriterion("length in", values, "length");
            return (Criteria) this;
        }

        public Criteria andLengthNotIn(List<String> values) {
            addCriterion("length not in", values, "length");
            return (Criteria) this;
        }

        public Criteria andLengthBetween(String value1, String value2) {
            addCriterion("length between", value1, value2, "length");
            return (Criteria) this;
        }

        public Criteria andLengthNotBetween(String value1, String value2) {
            addCriterion("length not between", value1, value2, "length");
            return (Criteria) this;
        }

        public Criteria andPileConcreteIsNull() {
            addCriterion("pile_concrete is null");
            return (Criteria) this;
        }

        public Criteria andPileConcreteIsNotNull() {
            addCriterion("pile_concrete is not null");
            return (Criteria) this;
        }

        public Criteria andPileConcreteEqualTo(String value) {
            addCriterion("pile_concrete =", value, "pileConcrete");
            return (Criteria) this;
        }

        public Criteria andPileConcreteNotEqualTo(String value) {
            addCriterion("pile_concrete <>", value, "pileConcrete");
            return (Criteria) this;
        }

        public Criteria andPileConcreteGreaterThan(String value) {
            addCriterion("pile_concrete >", value, "pileConcrete");
            return (Criteria) this;
        }

        public Criteria andPileConcreteGreaterThanOrEqualTo(String value) {
            addCriterion("pile_concrete >=", value, "pileConcrete");
            return (Criteria) this;
        }

        public Criteria andPileConcreteLessThan(String value) {
            addCriterion("pile_concrete <", value, "pileConcrete");
            return (Criteria) this;
        }

        public Criteria andPileConcreteLessThanOrEqualTo(String value) {
            addCriterion("pile_concrete <=", value, "pileConcrete");
            return (Criteria) this;
        }

        public Criteria andPileConcreteLike(String value) {
            addCriterion("pile_concrete like", value, "pileConcrete");
            return (Criteria) this;
        }

        public Criteria andPileConcreteNotLike(String value) {
            addCriterion("pile_concrete not like", value, "pileConcrete");
            return (Criteria) this;
        }

        public Criteria andPileConcreteIn(List<String> values) {
            addCriterion("pile_concrete in", values, "pileConcrete");
            return (Criteria) this;
        }

        public Criteria andPileConcreteNotIn(List<String> values) {
            addCriterion("pile_concrete not in", values, "pileConcrete");
            return (Criteria) this;
        }

        public Criteria andPileConcreteBetween(String value1, String value2) {
            addCriterion("pile_concrete between", value1, value2, "pileConcrete");
            return (Criteria) this;
        }

        public Criteria andPileConcreteNotBetween(String value1, String value2) {
            addCriterion("pile_concrete not between", value1, value2, "pileConcrete");
            return (Criteria) this;
        }

        public Criteria andSedimentStausIsNull() {
            addCriterion("sediment_staus is null");
            return (Criteria) this;
        }

        public Criteria andSedimentStausIsNotNull() {
            addCriterion("sediment_staus is not null");
            return (Criteria) this;
        }

        public Criteria andSedimentStausEqualTo(String value) {
            addCriterion("sediment_staus =", value, "sedimentStaus");
            return (Criteria) this;
        }

        public Criteria andSedimentStausNotEqualTo(String value) {
            addCriterion("sediment_staus <>", value, "sedimentStaus");
            return (Criteria) this;
        }

        public Criteria andSedimentStausGreaterThan(String value) {
            addCriterion("sediment_staus >", value, "sedimentStaus");
            return (Criteria) this;
        }

        public Criteria andSedimentStausGreaterThanOrEqualTo(String value) {
            addCriterion("sediment_staus >=", value, "sedimentStaus");
            return (Criteria) this;
        }

        public Criteria andSedimentStausLessThan(String value) {
            addCriterion("sediment_staus <", value, "sedimentStaus");
            return (Criteria) this;
        }

        public Criteria andSedimentStausLessThanOrEqualTo(String value) {
            addCriterion("sediment_staus <=", value, "sedimentStaus");
            return (Criteria) this;
        }

        public Criteria andSedimentStausLike(String value) {
            addCriterion("sediment_staus like", value, "sedimentStaus");
            return (Criteria) this;
        }

        public Criteria andSedimentStausNotLike(String value) {
            addCriterion("sediment_staus not like", value, "sedimentStaus");
            return (Criteria) this;
        }

        public Criteria andSedimentStausIn(List<String> values) {
            addCriterion("sediment_staus in", values, "sedimentStaus");
            return (Criteria) this;
        }

        public Criteria andSedimentStausNotIn(List<String> values) {
            addCriterion("sediment_staus not in", values, "sedimentStaus");
            return (Criteria) this;
        }

        public Criteria andSedimentStausBetween(String value1, String value2) {
            addCriterion("sediment_staus between", value1, value2, "sedimentStaus");
            return (Criteria) this;
        }

        public Criteria andSedimentStausNotBetween(String value1, String value2) {
            addCriterion("sediment_staus not between", value1, value2, "sedimentStaus");
            return (Criteria) this;
        }

        public Criteria andForceLayerIsNull() {
            addCriterion("force_layer is null");
            return (Criteria) this;
        }

        public Criteria andForceLayerIsNotNull() {
            addCriterion("force_layer is not null");
            return (Criteria) this;
        }

        public Criteria andForceLayerEqualTo(String value) {
            addCriterion("force_layer =", value, "forceLayer");
            return (Criteria) this;
        }

        public Criteria andForceLayerNotEqualTo(String value) {
            addCriterion("force_layer <>", value, "forceLayer");
            return (Criteria) this;
        }

        public Criteria andForceLayerGreaterThan(String value) {
            addCriterion("force_layer >", value, "forceLayer");
            return (Criteria) this;
        }

        public Criteria andForceLayerGreaterThanOrEqualTo(String value) {
            addCriterion("force_layer >=", value, "forceLayer");
            return (Criteria) this;
        }

        public Criteria andForceLayerLessThan(String value) {
            addCriterion("force_layer <", value, "forceLayer");
            return (Criteria) this;
        }

        public Criteria andForceLayerLessThanOrEqualTo(String value) {
            addCriterion("force_layer <=", value, "forceLayer");
            return (Criteria) this;
        }

        public Criteria andForceLayerLike(String value) {
            addCriterion("force_layer like", value, "forceLayer");
            return (Criteria) this;
        }

        public Criteria andForceLayerNotLike(String value) {
            addCriterion("force_layer not like", value, "forceLayer");
            return (Criteria) this;
        }

        public Criteria andForceLayerIn(List<String> values) {
            addCriterion("force_layer in", values, "forceLayer");
            return (Criteria) this;
        }

        public Criteria andForceLayerNotIn(List<String> values) {
            addCriterion("force_layer not in", values, "forceLayer");
            return (Criteria) this;
        }

        public Criteria andForceLayerBetween(String value1, String value2) {
            addCriterion("force_layer between", value1, value2, "forceLayer");
            return (Criteria) this;
        }

        public Criteria andForceLayerNotBetween(String value1, String value2) {
            addCriterion("force_layer not between", value1, value2, "forceLayer");
            return (Criteria) this;
        }

        public Criteria andDetectionDepthIsNull() {
            addCriterion("detection_depth is null");
            return (Criteria) this;
        }

        public Criteria andDetectionDepthIsNotNull() {
            addCriterion("detection_depth is not null");
            return (Criteria) this;
        }

        public Criteria andDetectionDepthEqualTo(String value) {
            addCriterion("detection_depth =", value, "detectionDepth");
            return (Criteria) this;
        }

        public Criteria andDetectionDepthNotEqualTo(String value) {
            addCriterion("detection_depth <>", value, "detectionDepth");
            return (Criteria) this;
        }

        public Criteria andDetectionDepthGreaterThan(String value) {
            addCriterion("detection_depth >", value, "detectionDepth");
            return (Criteria) this;
        }

        public Criteria andDetectionDepthGreaterThanOrEqualTo(String value) {
            addCriterion("detection_depth >=", value, "detectionDepth");
            return (Criteria) this;
        }

        public Criteria andDetectionDepthLessThan(String value) {
            addCriterion("detection_depth <", value, "detectionDepth");
            return (Criteria) this;
        }

        public Criteria andDetectionDepthLessThanOrEqualTo(String value) {
            addCriterion("detection_depth <=", value, "detectionDepth");
            return (Criteria) this;
        }

        public Criteria andDetectionDepthLike(String value) {
            addCriterion("detection_depth like", value, "detectionDepth");
            return (Criteria) this;
        }

        public Criteria andDetectionDepthNotLike(String value) {
            addCriterion("detection_depth not like", value, "detectionDepth");
            return (Criteria) this;
        }

        public Criteria andDetectionDepthIn(List<String> values) {
            addCriterion("detection_depth in", values, "detectionDepth");
            return (Criteria) this;
        }

        public Criteria andDetectionDepthNotIn(List<String> values) {
            addCriterion("detection_depth not in", values, "detectionDepth");
            return (Criteria) this;
        }

        public Criteria andDetectionDepthBetween(String value1, String value2) {
            addCriterion("detection_depth between", value1, value2, "detectionDepth");
            return (Criteria) this;
        }

        public Criteria andDetectionDepthNotBetween(String value1, String value2) {
            addCriterion("detection_depth not between", value1, value2, "detectionDepth");
            return (Criteria) this;
        }

        public Criteria andDrillImgIsNull() {
            addCriterion("drill_img is null");
            return (Criteria) this;
        }

        public Criteria andDrillImgIsNotNull() {
            addCriterion("drill_img is not null");
            return (Criteria) this;
        }

        public Criteria andDrillImgEqualTo(String value) {
            addCriterion("drill_img =", value, "drillImg");
            return (Criteria) this;
        }

        public Criteria andDrillImgNotEqualTo(String value) {
            addCriterion("drill_img <>", value, "drillImg");
            return (Criteria) this;
        }

        public Criteria andDrillImgGreaterThan(String value) {
            addCriterion("drill_img >", value, "drillImg");
            return (Criteria) this;
        }

        public Criteria andDrillImgGreaterThanOrEqualTo(String value) {
            addCriterion("drill_img >=", value, "drillImg");
            return (Criteria) this;
        }

        public Criteria andDrillImgLessThan(String value) {
            addCriterion("drill_img <", value, "drillImg");
            return (Criteria) this;
        }

        public Criteria andDrillImgLessThanOrEqualTo(String value) {
            addCriterion("drill_img <=", value, "drillImg");
            return (Criteria) this;
        }

        public Criteria andDrillImgLike(String value) {
            addCriterion("drill_img like", value, "drillImg");
            return (Criteria) this;
        }

        public Criteria andDrillImgNotLike(String value) {
            addCriterion("drill_img not like", value, "drillImg");
            return (Criteria) this;
        }

        public Criteria andDrillImgIn(List<String> values) {
            addCriterion("drill_img in", values, "drillImg");
            return (Criteria) this;
        }

        public Criteria andDrillImgNotIn(List<String> values) {
            addCriterion("drill_img not in", values, "drillImg");
            return (Criteria) this;
        }

        public Criteria andDrillImgBetween(String value1, String value2) {
            addCriterion("drill_img between", value1, value2, "drillImg");
            return (Criteria) this;
        }

        public Criteria andDrillImgNotBetween(String value1, String value2) {
            addCriterion("drill_img not between", value1, value2, "drillImg");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}